package com.hss01248.dialog.material;

import com.hss01248.dialog.ResourceTable;
import com.hss01248.dialog.adapter.SuperLvAdapter;
import com.hss01248.dialog.adapter.SuperLvHolder;
import com.hss01248.dialog.config.ChooseBean;
import ohos.agp.components.RadioButton;
import ohos.app.Context;

import java.util.List;

/**
 * Created by Administrator on 2017/11/19.
 */

public class SingleChooseHolder extends SuperLvHolder<ChooseBean> {
    RadioButton checkedTextView;
    public SingleChooseHolder(Context context) {
        super(context);
    }

    @Override
    protected void findViews() {
        checkedTextView = (RadioButton)rootView;
    }

    @Override
    protected int setLayoutRes() {
        return ResourceTable.Layout_item_md_choose_single;//R.layout.item_md_choose_single;
    }

    @Override
    public void assingDatasAndEvents(Context context, ChooseBean bean) {


    }

    @Override
    public void assingDatasAndEvents(Context context, final ChooseBean bean, final int position, boolean isLast, boolean isListViewFling, final List datas, final SuperLvAdapter superAdapter) {
        super.assingDatasAndEvents(context, bean, position, isLast, isListViewFling, datas, superAdapter);
        checkedTextView.setText(bean.txt.toString());

    }
}
